package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * 公司余额记录表
 *
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_company_balancelog")
@TableAlias("bcb")
@ApiModel(value="BusCompanyBalancelog对象", description="公司余额记录表")
public class BusCompanyBalancelog extends AbstractAllEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "companyBalancelogId", type = IdType.ASSIGN_ID)
    private Long companyBalancelogId;

    private Long companyBalanceId;

    private String logTitle;

    private String logBody;

    @ApiModelProperty(value = "日志类型")
    private Integer logType;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "是否真实付款")
    private Integer isRealPay;

    @ApiModelProperty(value = "关联的业务类型")
    private String businessType;

    private Long businessId;

    @ApiModelProperty(value = "操作类型(1增加，2减少)")
    private Integer optType;

    @ApiModelProperty(value = "操作人")
    private Long optUserId;

}
